<template>
  <div
    class="target"
    :style="{
      top: size * position[0] + 'px',
      left: size * position[1] + 'px',
    }"
  ></div>
</template>

<script>
export default {
  name: "Target",
  props: {
    value: {
      type: Array,
      default: () => [],
    },
    size: {
      type: Number,
      default: () => 80,
    },
    map: {
      type: Array,
      default: () => [],
    },
  },
  data() {
    return {
      position: this.value.slice() || [],
    };
  },
  computed: {},
  created() {},
  methods: {},
};
</script>

<style>

.target {
  position: absolute;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.target::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: orange;
}
</style>
